package com.santu.edu.supporter.biz.category.pojo.po;

import java.io.Serializable;
import java.util.Date;

import com.santu.edu.supporter.biz.category.pojo.dto.GoodCategoryDTO;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 
 * @author npc234
 * @TableName day_day_up_good_category
 */
@Data
@Accessors(chain = true)
public class GoodCategoryPO implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 类别id
     */
    private String categoryId;

    /**
     * 类别名称
     */
    private String categoryName;

    /**
     * 顺序
     */
    private Integer sort;

    /**
     * 
     */
    private String gmtCreate;

    /**
     * 
     */
    private String gmtModified;

    private static final long serialVersionUID = 1L;

    public static GoodCategoryPO createItem(GoodCategoryDTO dto) {
        return new GoodCategoryPO()
                .setCategoryId(dto.getCategoryId())
                .setCategoryName(dto.getCategoryName())
                .setSort(dto.getSort());
    }
}